import myReq from "../../common/http/myReq.js"
import data_storage from '@ohos.data.storage';
import featureAbility from '@ohos.ability.featureAbility';
import router from '@system.router';
import prompt from '@system.prompt';

export default {
    data: {
        title: 'World'
    },
    submit(e){
        if(e.value.username == 'monica' && e.value.password == '123456' ){
            //把登录状态存进app.js
            this.$app.$def.AddressData.isLogin=true;

            router.push({
                uri: "pages/index/index"
            });
        }
    },
    navRegister(){
        router.push({
            uri:"pages/register/register"
        })
    }

}
